﻿<?php if ($this->pageCount): ?>
<div class="box">
	<!-- Page Navigation -->
	<ul class="paginator">
		<?php if (isset($this->previous)): ?>
		<li><a href="<?php echo $this->url(array('page' => $this->previous)); ?>">Previous</a></li>
		<?php else: ?>
		<li><a>Previous</a></li>
		<?php endif; ?>
		<?php foreach ($this->pagesInRange as $page): ?>
		  <?php if ($page != $this->current): ?>
		  	<li><a href="<?php echo $this->url(array('page' => $page)); ?>"><?php echo $page; ?></a></li>
		  <?php else: ?>
		    <li class="current"><a><?php echo $page; ?></a></li>
		  <?php endif; ?>
		<?php endforeach; ?>
		<?php if (isset($this->next)): ?>
		<li><a href="<?php echo $this->url(array('page' => $this->next)); ?>">Next</a></li>
		<?php else: ?>
		<li><a>Next</a></li>
		<?php endif; ?>
	</ul>
	<!-- /Page Navigation -->
</div>
<?php endif; ?>